import VNode from "./vnode.js"

export default function renderHelper(target) {
    target._c = createElement
    target._v = createTextNode
}

function createElement(tag, attr, children) {
    return VNode(tag, attr, children, this)
}

function createTextNode(textAST) {
    return VNode(null, null, null, this, textAST)
}